package Com.Hfzk.Bdqn;

import java.util.Scanner;

public class Job05 {
    public static void main(String[] args) {
        Scanner input = new Scanner(System.in);
        System.out.print("请输入第一个数字:");
        int figure01 = input.nextInt();
        System.out.print("请输入第二个数字:");
        int figure02 = input.nextInt();
        System.out.print("请输入第三个数字:");
        int figure03 = input.nextInt();
        int Max = 0;
        int Min = 0;
        if (figure01 > figure02){
            Max = figure01;
            figure01 = figure02;
            figure02 = Max;
        }
        if (figure02 > figure03){
            Max = figure02;
            figure02 = figure03;
            figure03 = Max;
        }
        if (figure03 > figure01){
            Max = figure03;
            figure03 = figure01;
            figure01 = Max;
        }
        if (figure01 < figure02){
            Min = figure01;
            figure01 = figure02;
            figure02 = Min;
        }
        if (figure02 < figure03){
            Min = figure02;
            figure02 = figure03;
            figure03 = Min;
        }
        if (figure03 < figure01){
            Min = figure03;
            figure03 = figure01;
            figure01 = Min;
        }
        System.out.println("最大值是:" +Max);
        System.out.println("最小值是:" +Min);
    }
}
